x86/HVM: introduce "curr" into hvmemul_rep_{mov,sto}s()
authorJan Beulich <jbeulich@suse.com>
Thu, 6 Feb 2020 15:22:28 +0000 (16:22 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 6 Feb 2020 15:22:28 +0000 (16:22 +0100)
commit38d106d7b09a6c024b7b443ee79ff1e1db5105c4
treecd9260489346a1d0be08e617277df6e04e34db6e
parent84cb6fe2e9901c5c8728605efd5601ec0f5daf7a
x86/HVM: introduce "curr" into hvmemul_rep_{mov,sto}s()

There are a number of uses of "current" already, and more may appear
down the road. Latch into a local variable.

At this occasion also drop stray casts from code getting touched anyway.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <pdurrant@amazon.com>
xen/arch/x86/hvm/emulate.c